package cn.lovemmd.model.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("model_statistics")
public class ModelStatistics {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Integer modelId;
    private String modelName;
    private Integer totalDownloads;
    private Integer totalViews;
    private Integer totalLikes;
    private Integer totalShares;
    private Integer dailyDownloads;
    private Integer weeklyDownloads;
    private Integer monthlyDownloads;
    private LocalDateTime lastDownloadTime;
    private LocalDateTime lastViewTime;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
